<?php

use yii\db\Migration;

/**
 * Handles dropping columns from table `{{%page}}`.
 */
class m230628_111831_drop_is_module_column_from_page_table extends Migration
{
    /**
     * {@inheritdoc}
     */
    public function safeUp()
    {
        $this->dropColumn('{{%page}}', 'is_module');
    }

    /**
     * {@inheritdoc}
     */
    public function safeDown()
    {
        $this->addColumn('{{%page}}', 'is_module', $this->boolean()->defaultValue(0));
    }
}
